package cn.tedu.review;

/*
Author     :Dsi
Date       : 2021/11/23 9:24
Description: 该类用于复习设计模式之饿汉式
*/
public class Singleton01 {
    public static void main(String[] args) {
        MySingle1 a=MySingle1.get();


    }

}
class MySingle1{
    private MySingle1(){}
    private static MySingle1 s=new MySingle1();
    public static MySingle1 get(){return s;}
}